// Copyright 2018 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-Intl.ListFormat.supportedLocalesOf
description: >
    Checks the "supportedLocalesOf" property of the ListFormat prototype object.
info: |
    Intl.ListFormat.supportedLocalesOf ( locales [, options ])

    Unless specified otherwise in this document, the objects, functions, and constructors described in this standard are subject to the generic requirements and restrictions specified for standard built-in ECMAScript objects in the ECMAScript 2019 Language Specification, 10th edition, clause 17, or successor.

includes: [propertyHelper.js]
features: [Intl.ListFormat]
---*/

function Test() {
    assert.sameValue(
      typeof Intl.ListFormat.supportedLocalesOf,
      "function",
      "typeof Intl.ListFormat.supportedLocalesOf is function"
    );

    verifyProperty(Intl.ListFormat, "supportedLocalesOf", {
      writable: true,
      enumerable: false,
    });

}

// preheat
const NUMBER_OF_PREHEAT = 1;
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    const globalObject = this;
    globalObject.Test();
}

ArkTools.jitCompileAsync(Test);
assert.sameValue(ArkTools.waitJitCompileFinish(Test), true, '[JIT] JIT disabled.');

// test
const NUMBER_OF_TEST = 1; // or 2
for (let i = 0; i < NUMBER_OF_PREHEAT; i++) {
    const globalObject = this;
    globalObject.Test();
}
